#ifndef D_BYTETRAIN_H
#define D_BYTETRAIN_H

class ByteTrain{
	public:
	ByteTrain();
	~ByteTrain();
		
	void Clear();
	bool AddBytes(unsigned char* data, int length);
	bool ReadAllBytes(unsigned char*& data, int& length);
	
	private:
	unsigned char* m_buffer;
	int m_current_buffer_length;
	int m_current_data_length;
	};

#endif